<?php include 'inc/super_head.php';?>


<div class="layui-container">

<form action="" class="layui-form layui-form-pane">
<input name="id"  type="hidden" value="<?=$this->info['id']?>"/>
    <div class="layui-form-item layui-col-md8 layui-col-md-offset2">
        <blockquote class="layui-elem-quote" style="font-size:18pt;">
            修改管理员密码
        </blockquote>
    </div>
    <input name="realname" type="hidden" value='管理员' />
<div class="layui-form-item layui-col-md8 layui-col-md-offset2" style="border:1px solid #eee;border-top:0;margin-top:-25px;padding-top:50px;padding-bottom:50px;">
    <br><br>
    <div class="layui-form-item layui-col-md6 layui-col-md-offset3">
        <label class="layui-form-label">
            密 码
        </label>
        <div class="layui-input-block">
            <input autocomplete="off" class="layui-input" lay-verify="" lay-vertype="tips" name="password" placeholder="请输入密码，不输入默认为不修改密码" type="password"/>
        </div>
    </div>
    <div class="layui-form-item layui-col-md6 layui-col-md-offset3">
        <label class="layui-form-label">
            再输一次
        </label>
        <div class="layui-input-block">
            <input autocomplete="off" class="layui-input" lay-verify="" lay-vertype="tips" name="password2" placeholder="请再输入一次密码" type="password"/>
        </div>
    </div>
    <div class="layui-form-item" style="text-align: center;">
        <button class="layui-btn" lay-filter="do" lay-submit="">
            确 定 修 改
        </button>
    </div>
</div>
</form>

<script language="javascript">
    layui.use(['form', 'element', 'table'], function () {
            var form = layui.form
                , table = layui.table
                , $ = layui.$;
            $("#itemEditPWD").addClass('layui-this'); //设置导航当前选中项的样式

    form.on('submit(do)', function (data) {
            $.post('/super/editPWD', data.field, function (r) {
                layer.msg(r);
            });
            return false;
        });

        });
</script>

</div>
<?php include 'inc/super_foot.php';?>
